<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<title>编辑工人</title>
<style type="text/css">
  table {
    border-collapse: collapse;
    width: 300px
  }
  td {
    border: 1px solid
  }
</style>
</head>
<body>
  <div style="text-align: center;">
    <fieldset>
      <s:form action="workerAction!modify.action" method="post">
        <legend>编辑工人信息</legend>
        <s:textfield label="工人id" name="worker.workerId" readonly="true" />
        <s:textfield label="工人姓名" name="worker.workerName" />
        <s:select label="性别" name="worker.sex" list="#{1:'男',0:'女'}" />
        <s:textfield label="电话" name="worker.telephone" />
        <s:select label="工程" name="worker.projectId" list="projects" listKey="projectId"
          listValue="projectName" />
        <s:submit value="修改" />
      </s:form>
    </fieldset>
  </div>
</body>
</html>
